package com.chrisevansdev.irisysaudit;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Menu extends Activity {
    
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);
    }
    
    // main onClick listener for activity
    public void onClick(View view) {
		Intent intent = null;
		switch (view.getId()) {
		case R.id.btnNewAudit:
			intent = new Intent (this, AuditConnections.class);
    		startActivity(intent);
			break;
		
		case R.id.btnConnectToServer:
			intent = new Intent (this, NetworkClient.class);
    		startActivity(intent);
			break;
			
		default:
			break;
		}
    }
}